@echo off
SET PROJECT_DIR=%1

if "%PROJECT_DIR%"=="" (goto ParameterError) else (goto CreatProject)

:ParameterError
  echo ******************************************************
  echo *** Create project error: 
  echo *** 
  echo ***     Example: createProject.bat NewProjectName
  echo ***         NewProjectName: Project name
  echo *** 
  echo ***     Example: createProject.bat NewProjectName clean
  echo ***         NewProjectName: Project name
  echo ***         clean: clean "NewProjectName"
  echo ******************************************************

  goto end

:CreatProject
  ant -buildfile createProject.xml -Dproject_dir=%PROJECT_DIR% %2

  goto end

:end
